package com.woniu.his.cms.common;


import com.woniu.his.result.ResultCode;

public enum CmsResultCode implements ResultCode {

    DEMO_CODE(300, "DEMO_CODE 请删除"),
    NON_DRUG_TYPE_WRONG(6101,"非药品类型错误"),
    NON_DRUG_CODE_EXITS(6102, "非药品项目已存在"),
    NON_DRUG_NAME_EXITS(6103, "非药品项目名字已存在"),
    NON_DRUG_MEMORY_CODE_EXITS(6104, "非药品项目拼音注解码已存在"),
    USE_EXCEPTION(2001,"接口异常"),
    NON_DRUG_NOT_EXIST(2002,"该非药品不存在"),
    NON_DRUG_DELETED_WRONG(6105,"非药品项目已是删除状态"),
    NON_DRUG_NOT_EXITS(6106, "非药品项目不存在"),
    NON_DRUG_PRICE_LESS_THAN_ZERO(6107, "非药品项目价格小于0"),
    ID_IS_WRONG(3006, "科室ID传入有误"),
    NOBODY_NEED_TO_CHECK(6108,"无人需要检查"),
    NON_DRUG_ITEM_NOT_EXITS(6109,"检查/处置条目不存在"),
    NON_DRUG_ITEM_NOT_PAID(6118,"检查/处置条目不是已缴费未登记状态"),
    NON_DRUG_ITEM_NOT_REGISTERED(6118,"检查/处置条目处于未登记状态"),
    CAN_NOT_FIND_STAFF(6110,"无法找到人员信息"),
    CAN_NOT_FIND_DEPT(6111,"无法找到科室id"),
    NON_DRUG_MODEL_CODE_EXITS (6113,"非药品模板编码存在"),
    NON_DRUG_MODEL_NAME_EXITS (6114,"非药品模板名称存在"),
    NON_DRUG_MODEL_SCOPE_WRONG (6115,"非药品模板范围参数错误"),
    NON_DRUG_MODEL_TYPE_WRONG (6116,"非药品模板类型参数错误"),
    NON_DRUG_MODEL_NOT_EXITS (6117,"非药品模板不存在"),
    NON_DRUG_MODEL_DELETED (6123,"非药品模板已经是删除"),
    PATIENT_NEED_TO_CHECK(6112,"有患者需要检查不能删除"),
    ;

    private int code;
    private String message;

    private CmsResultCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return this.code;
    }

    public String getMessage() {
        return this.message;
    }
}
